# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-dnspython
_pkgname=dnspython
pkgver=1.16.0
pkgrel=4
pkgdesc='DNS Toolkit for Python.'
url='https://pypi.org/project/dnspython/#files'
arch=('any')
license=('ISC')
depends=('python2')
makedepends=('python2-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.zip")
sha512sums=('d3f71b726b7722d17b761674b44a7ca0975eeff7f9fb2fb507df0b1aaac975ddce097246340ea5809c6a7563b6851a34f43012b5cb8a37926879746b59e92575')

build() {
  cd "$_pkgname-$pkgver"

  python2 setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python2 setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

